﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PublicationListControl.ascx.cs" Inherits="Electure.Controls.PublicationListControl" %>
  <asp:Repeater ID="repPublications" OnItemDataBound="repPublications_ItemDataBound" runat="server">
        <ItemTemplate>
            <div class="row" style="margin: 10px 0">
                <div class="col-sm-12">
                    <div class="thumbnail">
                        <asp:Image ID="imagePreview" style="max-height: 200px" runat="server" />
                        <div class="caption">                    
                            <h3><%# Eval("Name") %></h3>
                            <small>Додано: <%# Eval("CreateDate", "{0:dd.MM.yyyy}")%></small>
                            <p><a href="<%# ResolveUrl("~/ShowVideoLecture.aspx?id=") + Eval("ID") %>" class="btn btn-primary" role="button">Переглянути</a></p>
                        </div>
                    </div>
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>